package liudan.archetype.annotationtest;

import javax.servlet.http.HttpServletRequest;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;

/**
 * Description:
 * Email: liudan@ucfgroup.com
 * Title
 * Copyright: Copyright (c) 2017
 * User: liudan
 * Created on 2017/3/6 15:12
 */
public class MethosTest {
    public static void main(String[] args) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
//        String str = "abcde";
            int k=0;

        System.out.println(k);
//        Method methodStr = String.class.getMethod("charAt",int.class,String.class);
//        System.out.println(methodStr.invoke(str,new Object[]{1,"3"}));

        Map map  = new HashMap();
        map.put(null,"value");
        map.put(null,"value1");
        System.out.println(map.get(null));

//        Student s = new Student();
//        s.setName("liudan");
////        s.setPass("123456");
//
//        Class cl = Student.class;
//        try {
//            Method method = cl.getMethod("run", HttpServletRequest.class);
////            method.invoke(s,new );
//            System.out.println(method);
//        } catch (NoSuchMethodException e) {
//            e.printStackTrace();
//        }
    }
}
